package com.zsoft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zsoft.dao.CommentDao;
import com.zsoft.domain.CommentDomain;
import com.zsoft.service.CommentService;

@Service
public class CommentServiceImpl implements CommentService {
	@Autowired
	private CommentDao cDao;

	@Override
	public void add(CommentDomain t) {
		cDao.add(t);
	}

	@Override
	public void deleteById(Long id) {
		cDao.deleteById(id);
	}

	@Override
	public void deleteByExample(CommentDomain t) {
		cDao.delete(t);
	}

	@Override
	public void update(CommentDomain t) {
		cDao.update(t);
	}

	@Override
	public void saveOrUpdate(CommentDomain t) {
		// TODO Auto-generated method stub
	}

	@Override
	public List<CommentDomain> findList(CommentDomain t) {
		return cDao.getList(t);
	}

	@Override
	public CommentDomain getById(Long id) {
		return cDao.getById(id);
	}

}
